
import { createRoot } from 'react-dom/client'
import {  BrowserRouter } from 'react-router'
import Router from './router/index.tsx'
import zhCN from 'antd/locale/zh_CN';
// for date-picker i18n
import 'dayjs/locale/zh-cn';
import { ConfigProvider } from 'antd'
import './index.css'
import '@ant-design/v5-patch-for-react-19';
import 'dayjs/locale/zh-cn';
import { Provider } from 'react-redux'
import { store,persistor } from './store/store.ts'
import { PersistGate } from 'redux-persist/integration/react';
import '@ant-design/v5-patch-for-react-19';
createRoot(document.getElementById('root')!).render(
    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
            <ConfigProvider locale={zhCN}>
                <BrowserRouter>
                    <Router></Router>
                </BrowserRouter>
            </ConfigProvider>
        </PersistGate>
    </Provider>
)
